from selenium.webdriver.common.by import By


class HomeLocator:

    new_button = (By.CSS_SELECTOR, ".icon.icon-new-item")   # 新建
    online_button = (By.XPATH, "//li[@class='first-line show']//p[text()='在线文档']")   # 在线文档

    online_edu = (By.CSS_SELECTOR, ".btn.btn-for-work-educate")  # 在线办公教育

    search_input = (By.CLASS_NAME, "search-input")
    search_ID = (By.XPATH, "//span//span//span[text() = 'ID']")
    share = (By.XPATH, "//div[text()='分享']")

    userImage = (By.CSS_SELECTOR, "#user-account-avatar")  # 用户头像
    fileName = (By.XPATH, "//span[text()='XXX-遍历兼容测试用例-web']")  # XXX-遍历兼容测试用例-web
    copyUrl = (By.XPATH, "//li[text()='复制链接']")  # 复制链接
    centerMessage = (By.CSS_SELECTOR, ".dui-snackbar-message")  # 复制链接提示信息
    file_line_copy_url = (By.XPATH, "//span[contains(@class,'icon-pc-list-hover-copylink')]")  # 文件所在行复制链接
